package com.gs.study.web;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gs.study.service.MybatisService;
import com.gs.study.util.BaseController;
import com.gs.study.util.ResultJson;

/** 
 * @author gaoshang 
 * @date 创建时间：2018年5月15日 下午4:23:54 
 * @version 1.0 
 * @parameter  
 * @since  
 * @return  
 */
@RequestMapping(value="/mapper")
@Controller
public class MybatisController extends BaseController{
	private Logger logger = Logger.getLogger(getClass());
	@Autowired
	private MybatisService mybatisService;
	
	@RequestMapping(value="/findByName")
	public void findByName()throws Exception{
		mybatisService.updateName("gs");
		logger.info("输出info");
		logger.debug("输出debug");
		logger.error("输出error");
		ResultJson json=new ResultJson(true);
		printString(json.toString());
	}
	
}
